Auto merge of #2579 - alexcrichton:robust-submodule, r=brson
authorbors <bors@rust-lang.org>
Wed, 20 Apr 2016 18:51:57 +0000 (11:51 -0700)
committerbors <bors@rust-lang.org>
Wed, 20 Apr 2016 18:51:57 +0000 (11:51 -0700)
commitbf3f531332254db0edd5cd92018b0ad28ef53974
tree315c67769dd01a50dc78f12937ea348dfc03e06f
parent9719163b463faa8884d42ed0f46456be9b336c74
parentbd9cf885a23c35aa4d89ed9e22f020bca4feb16e
Auto merge of #2579 - alexcrichton:robust-submodule, r=brson

Remove submodule directory before cloning

If the directory is in a corrupt state that caused an existing repository to not
successfully open, then we'll want to blow it away anything that already exists
to ensure we start from a clean slate.

Closes #2567
src/cargo/sources/git/utils.rs